package ren.steve.ngh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import ren.steve.model.ngh.bean.NghQueryResult;

import java.util.List;

/**
 * @Author: CIS-T-13 Liu GuoJia
 * @Description:
 * @Date: Created in 2024/3/27 11:55
 */

public interface NghQueryResultService extends IService<NghQueryResult> {
  /**
   * 根据tabId更新Result
   * @param tabId
   * @return
   */
  List<NghQueryResult> list (Integer tabId);

  /**
   * 添加 Result
   * @param card
   * @param results
   * @return
   */
  NghQueryResult insert(NghQueryResult card, List<NghQueryResult> results);

  /**
   * 根据ID更新Result
   * @param card
   * @return
   */
  NghQueryResult update(NghQueryResult card);

  /**
   * 根据ID删除Result
   * @param id
   * @return
   */
  int removeById (String id);

  NghQueryResult selectById(Integer id);
}
